<!DOCTYPE html>
<html lang="zh-CN" dir="ltr">
    <head><meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'><meta name='description' content='https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf https://blog.poychang.net/vscode-shortcuts/ https://segmentfault.com/a/1190000007688656 https://github.com/skywind3000/awesome-cheatsheets/blob/cd8d0cebfe32c9263db8291a270bd33a162dc924/editors/keyboard-shortcuts-windows.pdf https://github.com/crper/Visual-Studio-Code-CNKEYMAP 前言 VSCode的快捷键继承了一些IDE风格，有VS的身影，也有Emacs的身影。 快捷键组合方式 Ctrl &#43; Shift &#43; ? : 常规按键组合 Ctrl &#43; V Ctrl &#43;V'>
<title>Vscode</title>

<link rel='canonical' href='/p/vscode/'>

<link rel="stylesheet" href="/scss/style.min.56b4b4efdee21dd7cd9a6ec6cdb1882f71985765df9c7591a90716c58b48f4c5.css"><meta property='og:title' content='Vscode'>
<meta property='og:description' content='https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf https://blog.poychang.net/vscode-shortcuts/ https://segmentfault.com/a/1190000007688656 https://github.com/skywind3000/awesome-cheatsheets/blob/cd8d0cebfe32c9263db8291a270bd33a162dc924/editors/keyboard-shortcuts-windows.pdf https://github.com/crper/Visual-Studio-Code-CNKEYMAP 前言 VSCode的快捷键继承了一些IDE风格，有VS的身影，也有Emacs的身影。 快捷键组合方式 Ctrl &#43; Shift &#43; ? : 常规按键组合 Ctrl &#43; V Ctrl &#43;V'>
<meta property='og:url' content='/p/vscode/'>
<meta property='og:site_name' content='良宏'>
<meta property='og:type' content='article'><meta property='article:section' content='Post' /><meta property='article:tag' content='vscode' /><meta property='article:published_time' content='2021-12-24T15:57:25&#43;08:00'/><meta property='article:modified_time' content='2021-12-24T15:57:25&#43;08:00'/>
<meta name="twitter:title" content="Vscode">
<meta name="twitter:description" content="https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf https://blog.poychang.net/vscode-shortcuts/ https://segmentfault.com/a/1190000007688656 https://github.com/skywind3000/awesome-cheatsheets/blob/cd8d0cebfe32c9263db8291a270bd33a162dc924/editors/keyboard-shortcuts-windows.pdf https://github.com/crper/Visual-Studio-Code-CNKEYMAP 前言 VSCode的快捷键继承了一些IDE风格，有VS的身影，也有Emacs的身影。 快捷键组合方式 Ctrl &#43; Shift &#43; ? : 常规按键组合 Ctrl &#43; V Ctrl &#43;V">
    </head>
    <body class="
    article-page
    ">
    <script>
        (function() {
            const colorSchemeKey = 'StackColorScheme';
            if(!localStorage.getItem(colorSchemeKey)){
                localStorage.setItem(colorSchemeKey, "auto");
            }
        })();
    </script><script>
    (function() {
        const colorSchemeKey = 'StackColorScheme';
        const colorSchemeItem = localStorage.getItem(colorSchemeKey);
        const supportDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches === true;

        if (colorSchemeItem == 'dark' || colorSchemeItem === 'auto' && supportDarkMode) {
            

            document.documentElement.dataset.scheme = 'dark';
        } else {
            document.documentElement.dataset.scheme = 'light';
        }
    })();
</script>
<div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky ">
    <button class="hamburger hamburger--spin" type="button" id="toggle-menu" aria-label="切换菜单">
        <span class="hamburger-box">
            <span class="hamburger-inner"></span>
        </span>
    </button>

    <header>
        
            
            <figure class="site-avatar">
                <a href="/">
                
                    
                    
                    
                        
                        <img src="/img/wx_150x150_hub08581134c092243b209205c3073808c_6075_300x0_resize_q75_box.jpeg" width="300"
                            height="300" class="site-logo" loading="lazy" alt="Avatar">
                    
                
                </a>
                
                    <span class="emoji">🍥</span>
                
            </figure>
            
        
        
        <div class="site-meta">
            <h1 class="site-name"><a href="/">良宏</a></h1>
            <h2 class="site-description">好好学习，天天向上。</h2>
        </div>
    </header><ol class="menu" id="main-menu">
        
        
        
        <li >
            <a href='/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <polyline points="5 12 3 12 12 3 21 12 19 12" />
  <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
  <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
</svg>



                
                <span>Home</span>
            </a>
        </li>
        
        
        <li >
            <a href='/about/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="7" r="4" />
  <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
</svg>



                
                <span>About</span>
            </a>
        </li>
        
        
        <li >
            <a href='/archives/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <rect x="3" y="4" width="18" height="4" rx="2" />
  <path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" />
  <line x1="10" y1="12" x2="14" y2="12" />
</svg>



                
                <span>Archives</span>
            </a>
        </li>
        
        
        <li >
            <a href='/search/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="10" cy="10" r="7" />
  <line x1="21" y1="21" x2="15" y2="15" />
</svg>



                
                <span>Search</span>
            </a>
        </li>
        

        <div class="menu-bottom-section">
            
            
                <li id="dark-mode-toggle">
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="8" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="16" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <span>暗色模式</span>
                </li>
            
        </div>
    </ol>
</aside>

    

            <main class="main full-width">
    <article class="main-article">
    <header class="article-header">

    <div class="article-details">
    
    <header class="article-category">
        
            <a href="/categories/tech/" style="background-color: blueviolet; color: #fff;">
                Tech
            </a>
        
            <a href="/categories/editor/" style="background-color: #df7988; color: #fff;">
                Editor
            </a>
        
            <a href="/categories/tool/" style="background-color: #0177b8; color: #fff;">
                Tool
            </a>
        
            <a href="/categories/keymap/" style="background-color: darkgreen; color: #fff;">
                Keymap
            </a>
        
    </header>
    

    <div class="article-title-wrapper">
        <h2 class="article-title">
            <a href="/p/vscode/">Vscode</a>
        </h2>
    
        
    </div>

    
    
    
    
    <footer class="article-time">
        
            <div>
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-calendar-time" width="56" height="56" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <path d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4" />
  <circle cx="18" cy="18" r="4" />
  <path d="M15 3v4" />
  <path d="M7 3v4" />
  <path d="M3 11h16" />
  <path d="M18 16.496v1.504l1 1" />
</svg>
                <time class="article-time--published">Dec 24, 2021</time>
            </div>
        

        
            <div>
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="12" r="9" />
  <polyline points="12 7 12 12 15 15" />
</svg>



                <time class="article-time--reading">
                    阅读时长: 4 分钟
                </time>
            </div>
        
    </footer>
    

    
</div>

</header>

    <section class="article-content">
    
    
    <pre tabindex="0"><code>https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf
https://blog.poychang.net/vscode-shortcuts/
https://segmentfault.com/a/1190000007688656
https://github.com/skywind3000/awesome-cheatsheets/blob/cd8d0cebfe32c9263db8291a270bd33a162dc924/editors/keyboard-shortcuts-windows.pdf
https://github.com/crper/Visual-Studio-Code-CNKEYMAP
</code></pre><h1 id="前言">前言</h1>
<p>VSCode的快捷键继承了一些IDE风格，有VS的身影，也有Emacs的身影。</p>
<h1 id="快捷键组合方式">快捷键组合方式</h1>
<ol>
<li><code>Ctrl + Shift + ?</code> : 常规按键组合</li>
<li><code>Ctrl + V Ctrl +V</code> : 同时依赖一个按键的组合</li>
<li><code>Shift + V c</code> : 先组合后单键的输入</li>
<li><code>Ctrl + Click</code>: 键盘 + 鼠标点击</li>
<li><code>Ctrl + DragMouse</code> : 键盘 + 鼠标拖动</li>
</ol>
<h1 id="编辑器">编辑器</h1>
<h2 id="窗口">窗口</h2>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">F11</td>
<td style="text-align:left">切换全屏模式</td>
</tr>
<tr>
<td style="text-align:left"></td>
<td style="text-align:left">打开源代码控件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + P,F1</td>
<td style="text-align:left">展示全局命令面板</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + N</td>
<td style="text-align:left">打开新的编辑器窗口</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + W</td>
<td style="text-align:left">关闭编辑器</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + alt + r</td>
<td style="text-align:left">重新加载VS代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + B</td>
<td style="text-align:left">侧边栏显示隐藏</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + E</td>
<td style="text-align:left">资源视图和编辑视图的焦点切换</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + F</td>
<td style="text-align:left">打开全局搜索</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + G G</td>
<td style="text-align:left">打开Git可视管理</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + D</td>
<td style="text-align:left">打开DeBug面板</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + X</td>
<td style="text-align:left">打开插件市场面板</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + H</td>
<td style="text-align:left">在当前文件替换查询替换</td>
</tr>
<tr>
<td style="text-align:left"><del>Ctrl + Shift + J</del></td>
<td style="text-align:left">开启详细查询</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + V</td>
<td style="text-align:left">预览Markdown文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K v</td>
<td style="text-align:left">在边栏打开渲染后的视图</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + \</td>
<td style="text-align:left">切割编辑窗口</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + 1/2/3</td>
<td style="text-align:left">切换焦点在不同的切割窗口</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl &lt;-/-&gt;</td>
<td style="text-align:left">切换焦点在不同的切割窗口</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + =/-</td>
<td style="text-align:left">放大 / 缩小</td>
</tr>
<tr>
<td style="text-align:left"><del>Shift + Alt + 1</del></td>
<td style="text-align:left">切换编辑布局</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K &lt;-/-&gt;</td>
<td style="text-align:left">切割窗口位置调换</td>
</tr>
</tbody>
</table></div>
<h2 id="标签">标签</h2>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Ctrl + tab,alt + <!-- raw HTML omitted --></td>
<td style="text-align:left">在标签之间切换</td>
</tr>
<tr>
<td style="text-align:left">Ctrl+(number of tab groups open)</td>
<td style="text-align:left">创建一个新的标签组</td>
</tr>
<tr>
<td style="text-align:left">Ctrl+(n)</td>
<td style="text-align:left">在标签组之间切换</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + alt + left/right arrow key</td>
<td style="text-align:left">将当前选项卡移至左/右选项卡组</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + w</td>
<td style="text-align:left">关闭当前标签</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + F4, Ctrl + W</td>
<td style="text-align:left">关闭编辑器</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + PgUp/PgDown</td>
<td style="text-align:left">切换标签页的位置</td>
</tr>
</tbody>
</table></div>
<h2 id="补全">补全</h2>
<p>|Ctrl + I|补全提示|
|<del>Ctrl + Shift + Space</del>|参数提示|</p>
<h2 id="调试">调试</h2>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">F9</td>
<td style="text-align:left">添加解除断点</td>
</tr>
<tr>
<td style="text-align:left">F5</td>
<td style="text-align:left">启动调试、继续</td>
</tr>
<tr>
<td style="text-align:left">F11 / Shift + F11</td>
<td style="text-align:left">单步进入 / 单步跳出</td>
</tr>
<tr>
<td style="text-align:left">F10</td>
<td style="text-align:left">单步跳过</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + I</td>
<td style="text-align:left">显示悬浮</td>
</tr>
</tbody>
</table></div>
<h2 id="终端">终端</h2>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Ctrl + `</td>
<td style="text-align:left">打开集成终端</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + `</td>
<td style="text-align:left">创建一个新的终端</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + C</td>
<td style="text-align:left">复制所选</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + V</td>
<td style="text-align:left">复制到当前激活的终端</td>
</tr>
<tr>
<td style="text-align:left">Shift + PgUp / PgDown</td>
<td style="text-align:left">页面上下翻屏</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Home / End</td>
<td style="text-align:left">滚动到页面头部或尾部</td>
</tr>
</tbody>
</table></div>
<h1 id="文件操作">文件操作</h1>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Ctrl + P</td>
<td style="text-align:left">快速打开最近打开的文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + N</td>
<td style="text-align:left">新建文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + O</td>
<td style="text-align:left">打开文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + S</td>
<td style="text-align:left">保存文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + S</td>
<td style="text-align:left">另存为</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K S</td>
<td style="text-align:left">保存所有当前已经打开的文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + F4</td>
<td style="text-align:left">关闭当前编辑窗口</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + W</td>
<td style="text-align:left">关闭所有编辑窗口</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + T</td>
<td style="text-align:left">撤销最近关闭的一个文件编辑窗口</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Enter</td>
<td style="text-align:left">保持开启</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + Tab</td>
<td style="text-align:left">调出最近打开的文件列表，重复按会切换</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Tab</td>
<td style="text-align:left">与上面一致，顺序不一致</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K P</td>
<td style="text-align:left">复制当前打开文件的存放路径</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K R</td>
<td style="text-align:left">打开当前编辑文件存放位置【文件管理器】</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K O</td>
<td style="text-align:left">在新的编辑器中打开当前编辑的文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + k F</td>
<td style="text-align:left">关闭当前打开的文件夹</td>
</tr>
</tbody>
</table></div>
<h1 id="光标移动跳转">光标移动跳转</h1>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Ctrl + Shift + \</td>
<td style="text-align:left">匹配花括号的闭合处，跳转</td>
</tr>
<tr>
<td style="text-align:left">Home</td>
<td style="text-align:left">光标跳转到行头</td>
</tr>
<tr>
<td style="text-align:left">End</td>
<td style="text-align:left">光标跳转到行尾</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Home</td>
<td style="text-align:left">跳转到页头</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + End</td>
<td style="text-align:left">跳转到页尾</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + T</td>
<td style="text-align:left">列出所有符号</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + G</td>
<td style="text-align:left">跳转行</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + P</td>
<td style="text-align:left">跳转文件</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + O</td>
<td style="text-align:left">跳转到符号处</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + F</td>
<td style="text-align:left">查询</td>
</tr>
<tr>
<td style="text-align:left">F3 / Shift + F3</td>
<td style="text-align:left">查询下一个/上一个</td>
</tr>
<tr>
<td style="text-align:left">Alt + Enter</td>
<td style="text-align:left">选中所有出现在查询中的</td>
</tr>
<tr>
<td style="text-align:left">F12</td>
<td style="text-align:left">跳转到定义处</td>
</tr>
<tr>
<td style="text-align:left">Alt + F12</td>
<td style="text-align:left">代码片段显示定义</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K F12</td>
<td style="text-align:left">在其他窗口打开定义处</td>
</tr>
<tr>
<td style="text-align:left">Shift + F12</td>
<td style="text-align:left">显示所有引用</td>
</tr>
</tbody>
</table></div>
<h1 id="文本操作">文本操作</h1>
<h2 id="文本修改">文本修改</h2>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Ctrl + H</td>
<td style="text-align:left">替换</td>
</tr>
<tr>
<td style="text-align:left">Tab</td>
<td style="text-align:left">Emmet指令触发/缩进</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + ] / [</td>
<td style="text-align:left">缩进</td>
</tr>
<tr>
<td style="text-align:left">alt + up/down Arrow</td>
<td style="text-align:left">上下移动行</td>
</tr>
<tr>
<td style="text-align:left">alt + left mouse click</td>
<td style="text-align:left">添加多个光标</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + alt + up/down arrow key</td>
<td style="text-align:left">在上方/下方添加光标</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + right/left arrow key</td>
<td style="text-align:left">选择词</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + backspace/delete</td>
<td style="text-align:left">删除一个词</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + X</td>
<td style="text-align:left">剪切</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + C</td>
<td style="text-align:left">复制</td>
</tr>
<tr>
<td style="text-align:left">Alt + up/down</td>
<td style="text-align:left">移动行上下</td>
</tr>
<tr>
<td style="text-align:left">Shift + Alt up/down</td>
<td style="text-align:left">在当前行上下复制当前行</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + K</td>
<td style="text-align:left">删除行</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Enter</td>
<td style="text-align:left">在当前行下插入新的一行</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + Enter</td>
<td style="text-align:left">在当前行上插入新的一行</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + C</td>
<td style="text-align:left">添加行注释</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + U</td>
<td style="text-align:left">删除行注释</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + /</td>
<td style="text-align:left">添加关闭行注释</td>
</tr>
<tr>
<td style="text-align:left">Shift + Alt +A</td>
<td style="text-align:left">块区域注释</td>
</tr>
<tr>
<td style="text-align:left">Alt + Z</td>
<td style="text-align:left">添加关闭词汇包含</td>
</tr>
<tr>
<td style="text-align:left">Alt + C / R / W</td>
<td style="text-align:left">不分大小写/使用正则/全字匹配</td>
</tr>
<tr>
<td style="text-align:left">Alt + Click</td>
<td style="text-align:left">插入光标-支持多个</td>
</tr>
<tr>
<td style="text-align:left"><del>Ctrl + Alt + up/down</del></td>
<td style="text-align:left">上下插入光标-支持多个</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + U</td>
<td style="text-align:left">撤销最后一次光标操作</td>
</tr>
<tr>
<td style="text-align:left">Shift + Alt + click</td>
<td style="text-align:left">光标到选中范围内所有列</td>
</tr>
<tr>
<td style="text-align:left">Shift + Alt + (drag mouse)</td>
<td style="text-align:left">鼠标拖动区域，同时在多个行结束符插入光标</td>
</tr>
<tr>
<td style="text-align:left"><del>Shift + Alt + I</del></td>
<td style="text-align:left">插入光标到选中范围内所有行结束符</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + D</td>
<td style="text-align:left">匹配当前选中的词汇或者行，再次选中-可操作</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + D</td>
<td style="text-align:left">移动当前选择到下个匹配选择的位置(光标选定)</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + L</td>
<td style="text-align:left">选择所有出现在当前选中的词汇-操作</td>
</tr>
<tr>
<td style="text-align:left"><del>Ctrl + F2</del></td>
<td style="text-align:left">选择所有出现在当前选中的行-操作</td>
</tr>
<tr>
<td style="text-align:left">Shift + Alt + right</td>
<td style="text-align:left">从光标处扩展选中全行</td>
</tr>
<tr>
<td style="text-align:left">Shift + Alt + left</td>
<td style="text-align:left">收缩选择区域</td>
</tr>
<tr>
<td style="text-align:left">Shift + Alt + F</td>
<td style="text-align:left">格式化代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + F</td>
<td style="text-align:left">格式化选中部分的代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + .</td>
<td style="text-align:left">快速修复部分可以修复的语法错误</td>
</tr>
<tr>
<td style="text-align:left">F2</td>
<td style="text-align:left">重命名符号</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + . / ,</td>
<td style="text-align:left">替换下个值</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + X</td>
<td style="text-align:left">移除空白字符</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K M</td>
<td style="text-align:left">更改页面文档格式</td>
</tr>
</tbody>
</table></div>
<h2 id="文本阅读">文本阅读</h2>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Ctrl + Shift + [</td>
<td style="text-align:left">折叠区域代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + ]</td>
<td style="text-align:left">展开区域代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + [</td>
<td style="text-align:left">折叠所有子区域代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + k Ctrl + ]</td>
<td style="text-align:left">展开所有折叠的子区域代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + 0</td>
<td style="text-align:left">折叠所有区域代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + J</td>
<td style="text-align:left">展开所有折叠区域代码</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + up/down</td>
<td style="text-align:left">行视图上下偏移</td>
</tr>
<tr>
<td style="text-align:left">Alt + PgUp/PgDown</td>
<td style="text-align:left">屏视图上下偏移</td>
</tr>
</tbody>
</table></div>
<h1 id="常用">常用</h1>
<div class="table-wrapper"><table>
<thead>
<tr>
<th style="text-align:left">快捷键</th>
<th style="text-align:left">作用</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Shift + Alt + (drag mouse)</td>
<td style="text-align:left">鼠标拖动区域，同时在多个行结束符插入光标</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + D</td>
<td style="text-align:left">匹配当前选中的词汇或者行，再次选中-可操作</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + K Ctrl + D</td>
<td style="text-align:left">移动当前选择到下个匹配选择的位置(光标选定)</td>
</tr>
<tr>
<td style="text-align:left">Ctrl + Shift + L</td>
<td style="text-align:left">选择所有出现在当前选中的词汇-操作</td>
</tr>
</tbody>
</table></div>

</section>


    <footer class="article-footer">
    
    <section class="article-tags">
        
            <a href="/tags/vscode/">vscode</a>
        
    </section>


    </footer>


    
</article>

    

    

<aside class="related-content--wrapper">
    <h2 class="section-title">相关文章</h2>
    <div class="related-content">
        <div class="flex article-list--tile">
            
                
<article class="">
    <a href="/p/vim2/">
        
        

        <div class="article-details">
            <h2 class="article-title">Vim2</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/tmux/">
        
        

        <div class="article-details">
            <h2 class="article-title">Tmux</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/space-vim/">
        
        

        <div class="article-details">
            <h2 class="article-title">Space Vim</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/vim/">
        
        

        <div class="article-details">
            <h2 class="article-title">Vim</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/terminal/">
        
        

        <div class="article-details">
            <h2 class="article-title">Terminal</h2>
        </div>
    </a>
</article>

            
        </div>
    </div>
</aside>

     
    
        
    

    <footer class="site-footer">
    <section class="copyright">
        &copy; 
        
            2021 - 
        
        2023 良宏
    </section>
    <section class="powerby">
        Built with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>,
        主题 <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.5.0">Stack</a></b> 由 <a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> 设计
    </section>
</footer>


    
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    
    <div class="pswp__bg"></div>

    
    <div class="pswp__scroll-wrap">

        
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                
                
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"integrity="sha256-ePwmChbbvXbsO02lbM3HoHbSHTHFAeChekF1xKJdleo="crossorigin="anonymous"
                defer
                >
            </script><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"integrity="sha256-UKkzOn/w1mBxRmLLGrSeyB4e1xbrp4xylgAWb3M42pU="crossorigin="anonymous"
                defer
                >
            </script><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css"crossorigin="anonymous"
            ><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css"crossorigin="anonymous"
            >

            </main>
        </div>
        <script 
                src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js"integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z&#43;KMkF24hUW8WePSA9HM="crossorigin="anonymous"
                
                >
            </script><script type="text/javascript" src="/ts/main.js" defer></script><script type="text/javascript" src="/ts/custom.js" defer></script>
<script>
    (function () {
        const customFont = document.createElement('link');
        customFont.href = "https://fonts.font.im/css2?family=Lato:wght@300;400;700&display=swap";

        customFont.type = "text/css";
        customFont.rel = "stylesheet";

        
    }());
</script>


    </body>
</html>
